package com.getbyte.plbc;

import java.io.*;

/**
 * @author げっしょく
 * @date 2021/8/4
 */
public class Demo5 {
    public static void main(String[] args) throws IOException {
        InputStreamReader isr = new InputStreamReader(new FileInputStream("D:\\a.txt"), "GBK");
        OutputStreamWriter osw = new OutputStreamWriter(new FileOutputStream("D:\\p.txt"), "UTF-8");
        int c ;
        while ((c = isr.read()) != -1) {
            osw.write(c);
        }
        osw.flush();
        osw.close();
        isr.close();
    }
}
